package com.anjubao.parking.municipal.parkinglot.model;

import com.anjubao.parking.municipal.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
* 设备故障表
*
* @author zhuchunfeng
*/
@Getter
@Setter
@TableName("parking_lot_device_failure")
@ApiModel(value="ParkingLotDeviceFailure",description = "设备故障表")
public class ParkingLotDeviceFailure extends BaseEntity<ParkingLotDeviceFailure>{

    @TableField(value="id")
    @ApiModelProperty(name="id",value = "id")
    private Long id;

    @TableField(value="code")
    @ApiModelProperty(name="code",value = "编号")
    private String code;

    @TableField(value="parking_lot_id")
    @ApiModelProperty(name="parkingLotId",value = "停车场ID")
    private Long parkingLotId;

    @TableField(value="parking_lot_code")
    @ApiModelProperty(name="parkingLotCode",value = "停车场编号,code生成规则为100(3位)+yyMMddHHmm(10位)+id(19位)")
    private String parkingLotCode;

    @TableField(value="parking_lot_name")
    @ApiModelProperty(name="parkingLotName",value = "停车场名称")
    private String parkingLotName;

    @TableField(value="parking_lot_slot_id")
    @ApiModelProperty(name="parkingLotSlotId",value = "停车场停车位ID")
    private Long parkingLotSlotId;

    @TableField(value="parking_lot_slot_code")
    @ApiModelProperty(name="parkingLotSlotCode",value = "停车场停车位编号")
    private String parkingLotSlotCode;

    @TableField(value="parking_lot_slot_name")
    @ApiModelProperty(name="parkingLotSlotName",value = "停车场停车位名称")
    private String parkingLotSlotName;

    @TableField(value="type")
    @ApiModelProperty(name="type",value = "类型 1:充电桩,2:视频桩,3:地磁,4:pda")
    private Integer type;

    @TableField(value="status")
    @ApiModelProperty(name="status",value = "状态 -1:已损坏,0:异常,1:已修复")
    private Integer status;

    @TableField(value="note")
    @ApiModelProperty(name="note",value = "备注")
    private String note;

    @TableField(value="fix_by")
    @ApiModelProperty(name="fixBy",value = "修复人")
    private String fixBy;

    @TableField(value="fix_time")
    @ApiModelProperty(name="fixTime",value = "修复时间")
    private LocalDateTime fixTime;

    @TableField(value="fix_note")
    @ApiModelProperty(name="fixNote",value = "修复备注")
    private String fixNote;


}